/**
	此文件放在项目根路径下,
	然后在 webstorm 的 File | Settings | Languages & Frameworks | JavaScript | Webpack 中进行配置
**/
const path = require('path');

function resolve (dir) {
  return path.join(__dirname, '.', dir)
}

module.exports = {
    context: path.resolve(__dirname, './'),
    resolve: {
        extensions: ['.js', '.vue', '.json'],
        alias: {
            '@': resolve('src'),
            'views': resolve('src/views'),
			'common': resolve('src/common'),
            'components': resolve('src/components'),
            'core': resolve('src/core'),
            'utils': resolve('src/utils'),
			'network': resolve('src/network')
        }
    },
}
